package com.hnkywl.sts.entity.shgl;

import com.hnkywl.sts.entity.sfgl.Sfk;
import com.hnkywl.sts.entity.xsgl.Jfmx;
import com.hnkywl.sts.entity.xsgl.Xsd;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 代理费
 * Created with IntelliJ IDEA.
 * User: jerry
 * Date: 13-3-3
 * Time: 下午10:22
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "T_BIZ_DLF")
public class Dlf  implements  Serializable{
    @Id
    @SequenceGenerator(name = "seqDlf", allocationSize = 1, sequenceName = "SEQ_BIZ_DLF")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqDlf")
    private Long id;


    @OneToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "JFMX_ID")
    private Jfmx jfmx;

    private Long sfkId;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "XSD_ID")
    private Xsd xsd;

    private Float dlf;

    private Date created_date;

    private Integer deleted = 0;

    public Jfmx getJfmx() {
        return jfmx;
    }

    public void setJfmx(Jfmx jfmx) {
        this.jfmx = jfmx;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSfkId() {
        return sfkId;
    }

    public void setSfkId(Long sfkId) {
        this.sfkId = sfkId;
    }

    public Xsd getXsd() {
        return xsd;
    }

    public void setXsd(Xsd xsd) {
        this.xsd = xsd;
    }

    public Float getDlf() {
        return dlf;
    }

    public void setDlf(Float dlf) {
        this.dlf = dlf;
    }

    public Date getCreated_date() {
        return created_date;
    }

    public void setCreated_date(Date created_date) {
        this.created_date = created_date;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
}
